package com.wwy.monitor.mapper.tddl;

import com.wwy.monitor.model.tddl.dto.MonitorConfigIpRelDTO;
import com.wwy.monitor.model.tddl.query.MonitorConfigIpRelQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author long.Wanheng
 * @version V1.00
 * @createDate 2019/11/11
 */
public interface MonitorConfigIpRelMapper {
    /**
     * 批量添加
     *
     * @param list æå¥æ°æ®
     * @return æ·»å æ¡æ°
     */
    int batchInsert(@Param("list") List<MonitorConfigIpRelDTO> list);

    /**
     * æ ¹æ®idé»è¾å é¤
     *
     * @param id ä¸»é®id
     * @return å é¤æ¡æ°
     */
    int deleteById(@Param("id") Long id);

    /**
     * æ ¹æ®éç½®è¯¦æidé»è¾å é¤
     *
     * @param detailId éç½®è¯¦æid
     * @return é»è¾å é¤æ¡æ°
     */
    int deleteByDetailId(@Param("detailId") Long detailId);

    /**
     * æ ¹æ®æ¥è¯¢æ¡ä»¶æ¥è¯¢
     */
    List<MonitorConfigIpRelDTO> selectByQuery(MonitorConfigIpRelQuery monitorConfigIpRelQuery);
}